package cn.echo.common.baseentity;

import cn.echo.modules.sys.entity.SysAdmin;

import java.util.Date;

/**
 * Created by Administrator on 2017/4/10.
 */
public class BaseEntity {
    public static final String DEL_NORMAL = "0";//正常
    public static final String DEL_DELETE = "1";//删除状态
    private String id;
    private SysAdmin createBy;

    private Date createDate;
    //    private String updateBy;
    private SysAdmin updateBy;
    private Date updateDate;
    private String remarks;
    private char delFlag;

    public BaseEntity(){


    }


    public BaseEntity(String id){
        this.id = id;
    }

    public void setCreateBy(SysAdmin createBy) {
        this.createBy = createBy;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public SysAdmin getCreateBy() {
        return createBy;
    }

    public SysAdmin getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(SysAdmin updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public char getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(char delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "id='" + id + '\'' +
                ", createBy=" + createBy +
                ", createDate=" + createDate +
                ", updateBy=" + updateBy +
                ", updateDate=" + updateDate +
                ", remarks='" + remarks + '\'' +
                ", delFlag=" + delFlag +
                '}';
    }
}
